package com.un.ebs.product.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.un.ebs.core.enums.IEnum;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/5/19 14:55
 * 采购类型
 */
@Getter
public enum ProductPurchaseTypeEnum implements IEnum {

    Default(0, "未定义"),
    Produce(1, "内部生产"),
    Purchase(2, "外部采购"),
    CustomerProvider(3, "客户供料");

    @EnumValue
    private final int value;
    private final String desc;

    ProductPurchaseTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return value;
    }
}
